package com.ag.answergames.controller;


import com.ag.answergames.service.wallet.MoneyService;
import com.ag.answergames.vo.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bank/money")
public class MoneyController {

    @Autowired
    private MoneyService moneyService;

    /**
     * 查正确题数
     * @param userId 用户ID
     * @return Integer学生的做题数
     */
    @PostMapping("/correcty")
    public Result correct(@RequestParam Long userId){
        Result f = moneyService.correct(userId);
        return f;

    }
}
